package cn.t.converter.user;

import cn.t.model.user.UserPassportDO;
import cn.t.vo.user.UserSessionVO;
import org.springframework.stereotype.Component;


/**
 * @author l
 */
@Component
public class UserSessionVOConverter {


    public UserSessionVO passportToSession(UserPassportDO passport) {
        UserSessionVO session = new UserSessionVO();
        session.setPassportId(passport.getId());
        session.setUserId(passport.getUserId());
        return session;
    }


}
